<template>
  <div class="message">
    <iframe id="mainFrame" src="" frameborder="0"></iframe>
  </div>
</template>

<script>
export default {
  created () {
    this.initFrame();
    console.log(this.$store.state.clentno)
  },
  methods: {
    initFrame () {
      setTimeout(() => {
        var cod = localStorage.getItem('codes')
        console.log(localStorage.getItem('STREET_NO'))
        // var url = 'http://111.160.78.62:4456/cleaner?StreetNo=35&ClientNo=' + localStorage.getItem("clentno")
        var url = 'http://111.160.78.62:4467/#/cleaner?StreetNo=35&ClientNo=01900'
        document.getElementById('mainFrame').src = url
      }, 100)
    }
  }
}
</script>

<style>
.message,
iframe {
  width: 100%;
  height: 100%;
}
</style>
